<?
$table="";
$tb_info="";

$sql="SHOW TABLE STATUS LIKE 'all_conf'";
$result=mysql_fetch_array(mysql_query($sql, $conn_db));
$tb_info=$result["Comment"];

$sql="SELECT * FROM all_conf";
$result=mysql_query($sql, $conn_db);
while($res=mysql_fetch_array($result)){
    ($res["var_name_rus"]!="")?$res["var_name"]=$res["var_name_rus"]:$res["var_name"]=$res["var_name"];
    $table.="<tr>\n\t<td height=\"20\" style=\"border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;\" align=\"left\" width=\"500\">"
	    ."<font class=\"z11\" size=\"-1\">&nbsp;"
	    .$res["var_name"]."&nbsp;</font></td>\n\t"
	    ."<td height=\"20\" style=\"border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;\" align=\"left\" width=\"200\">"
	    ."<font class=\"z11\" size=\"-1\">&nbsp;"
	    ."<input type=\"text\" value=\"".$res["var_val"]."\" name=\"all_".$res["id"]."\">"//onblur=\"alert(this.value)\">"
	    ."&nbsp;</font></td>\n</tr>\n";

}

$table=xparse("tpl/tables.html");		
?>